package com.todo.content.application.frontend.controller;

import com.todo.common.common.entity.response.BizPageResponse;
import com.todo.common.common.entity.response.BizResponse;
import com.todo.content.iface.frontend.ContentPortalIface;
import com.todo.content.iface.frontend.request.FollowFeedStreamContentParam;
import com.todo.content.iface.frontend.request.RecommendContentListV1Param;
import com.todo.content.iface.frontend.request.SearchContentParam;
import com.todo.content.iface.frontend.response.ContentBaseVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2024/5/17 14:06
 * @description
 */
@Slf4j
@RestController
@RequestMapping("/content")
@Tag(name = "内容首页入口", description = "内容首页入口")
public class ContentPortalController implements ContentPortalIface {


    @Override
    @Operation(summary = "根据关键词搜索内容列表")
    @PostMapping("/searchContent")
    public BizPageResponse<ContentBaseVO> searchContent(@RequestBody SearchContentParam param) {
        return null;
    }

    @Override
    @Operation(summary = "根据用户关注的feed流查询内容列表")
    @PostMapping("/followFeedStreamContent")
    public BizPageResponse<ContentBaseVO> followFeedStreamContent(@RequestBody FollowFeedStreamContentParam param) {
        return null;
    }

    @Override
    @Operation(summary = "内容推荐列表入口 V1版本")
    @PostMapping("/recommendContentListV1")
    public BizResponse<List<ContentBaseVO>> recommendContentListV1(@RequestBody RecommendContentListV1Param param) {
        return null;
    }
}
